package com.example.czxyproduct.mapper;

import com.yc.czxy.Mapper.BaseMapper;
import com.yc.czxy.bean.Product;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @program: chengzixy
 * @description:
 * @author: 刘志成
 * @create: 2021-08-23 13:22
 */
public interface ProductMapper extends BaseMapper<Product> {
    @Select("select * from product")
     List<Product> selectAll();

    @Select("select * from product where pid = #{pid}")
    List<Product> selectByPid(Integer pid);

    @Select("select * from product where uid = #{uid}")
    List<Product> selectProductByUid(Integer uid);
}
